import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '用户id',
    align: "center",
    dataIndex: 'memberId'
  },
  {
    title: '公司ID',
    align: "center",
    dataIndex: 'companyId'
  },
  {
    title: '公司职务',
    align: "center",
    dataIndex: 'postName'
  },
  {
    title: '身份证号码',
    align: "center",
    dataIndex: 'idNumber'
  },
  {
    title: '会员角色：0-求职者，1-招聘者，',
    align: "center",
    dataIndex: 'memberRole'
  },
  {
    title: '备注信息',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: '排序',
    align: "center",
    dataIndex: 'sort'
  },
  {
    title: '启用状态',
    align: "center",
    dataIndex: 'status'
  },
  {
    title: 'tenantId',
    align: "center",
    dataIndex: 'tenantId'
  },
  {
    title: '删除状态(0-正常,1-已删除)',
    align: "center",
    dataIndex: 'delFlag'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '用户id',
    field: 'memberId',
    component: 'Input',
  },
  {
    label: '公司ID',
    field: 'companyId',
    component: 'Input',
  },
  {
    label: '公司职务',
    field: 'postName',
    component: 'Input',
  },
  {
    label: '身份证号码',
    field: 'idNumber',
    component: 'Input',
  },
  {
    label: '会员角色：0-求职者，1-招聘者，',
    field: 'memberRole',
    component: 'InputNumber',
  },
  {
    label: '备注信息',
    field: 'remark',
    component: 'Input',
  },
  {
    label: '排序',
    field: 'sort',
    component: 'InputNumber',
  },
  {
    label: '启用状态',
    field: 'status',
    component: 'InputNumber',
  },
  {
    label: 'tenantId',
    field: 'tenantId',
    component: 'InputNumber',
  },
  {
    label: '删除状态(0-正常,1-已删除)',
    field: 'delFlag',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
